package org.example.IO;

import java.io.File;

/**
 * @className: Demo5
 * @author: 芃
 * @description: 创建目录
 * @date: 2024/5/6 15:46
 */
public class Demo5 {
    public static void main(String[] args) {
        //创建目录
        File file = new File("./aaa");
        file.mkdir();
        System.out.println(file.isDirectory());
        //创建多级目录
        File file1 = new File("./first/second/third");
        file1.mkdirs();
        System.out.println(file1.isDirectory());
    }
}
